﻿// Decompiled with JetBrains decompiler
// Type: TaleWorlds.MountAndBlade.InitialState
// Assembly: TaleWorlds.MountAndBlade, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: D5209D1B-76B5-47CA-B957-255CD4B2CE6B
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\TaleWorlds.MountAndBlade.dll

using TaleWorlds.Core;

#nullable disable
namespace TaleWorlds.MountAndBlade
{
  public class InitialState : GameState
  {
    public override bool IsMusicMenuState => true;

    public event OnInitialMenuOptionInvokedDelegate OnInitialMenuOptionInvoked;

    public event OnGameContentUpdatedDelegate OnGameContentUpdated;

    protected override void OnActivate()
    {
      base.OnActivate();
      MBMusicManager.Current?.UnpauseMusicManagerSystem();
    }

    protected override void OnTick(float dt) => base.OnTick(dt);

    public void OnExecutedInitialStateOption(InitialStateOption target)
    {
      OnInitialMenuOptionInvokedDelegate menuOptionInvoked = this.OnInitialMenuOptionInvoked;
      if (menuOptionInvoked == null)
        return;
      menuOptionInvoked(target);
    }

    public void RefreshContentState()
    {
      OnGameContentUpdatedDelegate gameContentUpdated = this.OnGameContentUpdated;
      if (gameContentUpdated == null)
        return;
      gameContentUpdated();
    }
  }
}
